const mongoose = require("mongoose");
const Db = require("../index")
// 结构约束规则
const schema = new mongoose.Schema({
	// 管理员账号
	adminName: {
		type: String,
		required: true,
		unique: true
	},
	// 管理员密码
	password: {
		type: String,
		required: true
	},
	// 登陆时间
	loginTime: {
		type: String,
		required: true
	},
	// 注册时间
	regTime: {
		type: String,
		required: true
	},
}, {
	versionKey: false
})
// model
const model = mongoose.model("adminList", schema, "adminList");
module.exports = new Db(model);